package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerItemInfo implements IQLResponse
{
    /// <summary>
    /// 物品名称
    /// </summary>
    public String ItemName;

    /// <summary>
    /// 物品数量
    /// </summary>
    public long ItemCount;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("item_name"))
            ItemName = t.getString("item_name");
        if (t.has("item_count"))
            ItemCount = t.getLong("item_count");
    }
}
